package com.dto;



/**
 * 消息的枚举 就是把所有的消息可能都列出来的
 */
//查询全部学生为例  查询成功   查询失败  当前没有数据
public enum MessageEnum {
    ALLNEWSSUCCESS(200,Messages.ALLNEWSSUCCESS),
    ALLNEWSFAIL(4001,Messages.ALLNEWSFAIL),
    ADDNEWSSUCCESS(200,Messages.ADDNEWSSUCCESS),
    ADDNEWSFAIL(4001,Messages.ADDNEWSFAIL),
    DELETENEWSSUCCESS(200,Messages.DELETENEWSSUCCESS),
    DELETENEWSFAIL(4001,Messages.DELETENEWSFAIL),
    UPDATENEWSSUCCESS(200,Messages.UPDATENEWSSUCCESS),
    UPDATENEWSFAIL(4001,Messages.UPDATENEWSFAIL),
    GETNEWSBYPAGESUCCESS(200,Messages.GETNEWSBYPAGESUCCESS),
    GETNEWSBYPAGEFAIL(4001,Messages.GETNEWSBYPAGEFAIL),
    GETNEWBYIDWITHANOSSUCCESS(200,Messages.GETNEWBYIDWITHANOSSUCCESS),
    GETNEWBYIDWITHANOFAIL(4001,Messages.GETNEWBYIDWITHANOFAIL),
    GETNEWBYIDWITHANOANDMEMBERSSUCCESS(200,Messages.GETNEWBYIDWITHANOANDMEMBERSSUCCESS),
    GETNEWBYIDWITHANOANDMEMBERSFAIL(4001,Messages.GETNEWBYIDWITHANOANDMEMBERSFAIL),


    //社团类型
    GETMEMBERTYPESUCCESS(200,Messages.GETMEMBERTYPESUCCESS),
    GETMEMBERTYPEFAIL(4001,Messages.GETMEMBERTYPEFAIL),

    //社团
    GETALLMEMBERTUCCESS(200,Messages.GETALLMEMBERSUCCESS),
    GETALLMEMBERFAIL(4001,Messages.GETALLMEMBERFAIL),
    //管理员
    GETALLADMINSUCCESS(200,Messages.GETALLADMINSUCCESS),
    GETALLADMINFAIL(4001,Messages.GETALLADMINFAIL);



    private Integer code;//状态码
    private String message;




    MessageEnum() {
    }

    public Integer getCode() {
        return code;
    }

    MessageEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
